package myutils;

public class NoIdea {

    public static <V> V castConversion(Object obj, Class<V> clazz) {

        //tries to cast o to Class<V>
        //usage Double d = castConversion(o, Double.class);
        /*
         tries to cast obj to a given class V
         usage Double d = castConversion(obj, Double.class);
         */
        V value = clazz.cast(obj);

        return value;
    }

}
